#delimit ;
clear all;
set more off;

capture log close;

log using log/wbresp_1013.log, replace;
 
import delimited
tucaseid
tulineno
wecantril
wegenhth
wehbp
wepainmd
werest
wetypical
wrtelig
wufinlwgt
wxcantril
wxgenhth
wxhbp
wxpainmd
wxrest
wxtypical
 using c:\atus\wb1013\wbresp_1013\wbresp_1013.dat, stringcols(1) ;

label variable tucaseid "ATUS Case ID (14-digit identifier)";
label variable tulineno "ATUS person line number";
label variable wecantril "Edited: Please imagine a ladder with steps numbered from 0 at the bottom to 10 at the top. The top of the ladder represents the best possible life for you and the bottom of the ladder represents the worst possible life for you. If the top step is 10 and the bottom step is 0, on which step of the ladder do you feel you personally stand at the present time?";
label variable wegenhth "Edited: Would you say your health in general is excellent, very good, good, fair, or poor?";
label variable wehbp "Edited: In the last five years, were you ever told by a doctor or other health professional that you have hypertension, also called high blood pressure, or borderline hypertension?";
label variable wepainmd "Edited: Did you take any pain medication yesterday, such as Aspirin, Ibuprofen or prescription pain medication?";
label variable werest "Edited: When you woke up yesterday, how well-rested did you feel? Did you feel very rested, somewhat rested, a little rested, or not at all rested?";
label variable wetypical "Edited: Thinking about yesterday as a whole, how would you say your feelings, both good and bad, compared to a typical [FILL= DAY]? Were they better than a typical [FILL=DAY], the same as a typical [FILL=DAY], or worse than a typical [FILL=DAY]?";
label variable wrtelig "Total time spent in all activities eligible to be selected for Well-being module";
label variable wufinlwgt "Well-being module respondent weight";
label variable wxcantril "WECANTRIL: allocation flag";
label variable wxgenhth "WEGENHTH: allocation flag";
label variable wxhbp "WEHBP: allocation flag";
label variable wxpainmd "WEPAINMD: allocation flag";
label variable wxrest "WEREST: allocation flag";
label variable wxtypical "WETYPICAL: allocation flag";

su;

sort tucaseid tulineno;
save work/wbresp_1013.dta, replace;

log close;